package com.service.impl;

import com.mapper.ZuhouseMapper;
import com.pojo.Zuhouse;
import com.service.ZuHouseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class ZuHouseServiceimpl implements ZuHouseService {
    @Resource
    private ZuhouseMapper zuhouseMapper;
    @Override
    public List<Zuhouse> selectzuall() {
        List<Zuhouse> selectzuall = zuhouseMapper.selectzuall();
        return selectzuall;
    }

    @Override
    public int insertSelective(Zuhouse record) {
        int i = zuhouseMapper.insertSelective(record);
        return i;
    }

    @Override
    public int deletehouseid(int id) {
        int deletehouseid = zuhouseMapper.deletehouseid(id);
        return deletehouseid;
    }

}
